package com.shujia.day09;

interface Inter2{
    void fun1();
}

//class Inter2Impl implements Inter2{
//    @Override
//    public void fun1() {
//        System.out.println("好好学习，天天向上！");
//    }
//}

class Demo3{
    public Inter2 show1(){
        return new Inter2() {
            @Override
            public void fun1() {
                System.out.println("好好学习，天天向上！");
            }
        };
    }
}
public class NiMingClassDemo3 {
    public static void main(String[] args) {

    }
}
